ComponentOne PDF for .NET
CSJ2K.j2k.entropy.encoder Namespace / CBlkRateDistStats Class / CBlkRateDistStats Constructor / CBlkRateDistStats Constructor(Int32,Int32,Int32,Byte[],Int32[],Double[],Boolean[],Int32,Boolean)
The horizontal index of the code-block, within the subband.
The vertical index of the code-block, within the subband.
The number of skipped most significant bit-planes for this code-block.
The compressed data. This array is referenced by this object so it should not be modified after.
The rates (in bytes) for each truncation point in the compressed data. This array is modified by the method but no reference is kept to it.
The reduction in distortion (with respect to no information coded) for each truncation point. This array is modified by the method but no reference is kept to it.
An array of boolean flags indicating, for each pass, if a pass is terminated or not (true if terminated). If null then it is assumed that no pass is terminated except the last one which always is.
The number of truncation points contained in 'rates', 'dist' and 'termp'.
If false the convex hull is constructed as for lossy coding. If true it is constructed as for lossless coding, in which case it is ensured that all bit-planes are sent (i.e. the last truncation point is always included).

In This Topic
    CBlkRateDistStats Constructor(Int32,Int32,Int32,Byte[],Int32[],Double[],Boolean[],Int32,Boolean)
    In This Topic
    Creates a new CBlkRateDistStats object and initializes the valid truncation points, their rates and their slopes, from the 'rates' and 'dist' arrays. The 'rates', 'dist' and 'termp' arrays must contain the rate (in bytes), the reduction in distortion (from nothing coded) and the flag indicating if termination is used, respectively, for each truncation point.

    The valid truncation points are selected by taking them as lying on a convex hull. This is done by calling the method selectConvexHull().

    Note that the arrays 'rates' and 'termp' are copied, not referenced, so they can be modified after a call to this constructor.

    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal m As Integer, _
       ByVal n As Integer, _
       ByVal skipMSBP As Integer, _
       ByVal data() As Byte, _
       ByVal rates() As Integer, _
       ByVal dists() As Double, _
       ByVal termp() As Boolean, _
       ByVal np As Integer, _
       ByVal inclast As Boolean _
    )
    public CBlkRateDistStats( 
       int m,
       int n,
       int skipMSBP,
       byte[] data,
       int[] rates,
       double[] dists,
       bool[] termp,
       int np,
       bool inclast
    )

    Parameters

    m
    The horizontal index of the code-block, within the subband.
    n
    The vertical index of the code-block, within the subband.
    skipMSBP
    The number of skipped most significant bit-planes for this code-block.
    data
    The compressed data. This array is referenced by this object so it should not be modified after.
    rates
    The rates (in bytes) for each truncation point in the compressed data. This array is modified by the method but no reference is kept to it.
    dists
    The reduction in distortion (with respect to no information coded) for each truncation point. This array is modified by the method but no reference is kept to it.
    termp
    An array of boolean flags indicating, for each pass, if a pass is terminated or not (true if terminated). If null then it is assumed that no pass is terminated except the last one which always is.
    np
    The number of truncation points contained in 'rates', 'dist' and 'termp'.
    inclast
    If false the convex hull is constructed as for lossy coding. If true it is constructed as for lossless coding, in which case it is ensured that all bit-planes are sent (i.e. the last truncation point is always included).
    See Also